<?xml version="1.0" encoding="utf-8"?>
<html xmlns:str="http://exslt.org/strings"><head><title>duetopia - Documentation - OpenSearch</title><link rel="stylesheet" href="docs.css"/></head><body><div class="menu"><h3>Setup</h3><p><a href="installation.html">Installation</a><br/><a href="configuration.html">Configuration</a></p><h4>Customisation</h4><p><a href="custom_classes.html">Custom Classes</a></p><h3>Interfaces</h3><p><a href="api.html">Quick API Guide</a><br/><a href="opensearch.html">Opensearch Guide</a><br/><a href="opensearch_client.html">Opensearch Client</a></p></div><div id="header">
<h1>duetopia</h1>
</div><div id="content">
<h2>Custom Classes</h2>

<h3>RDF extensions to Django objects</h3>

<p>Django objects store a set of "core" properties in the SQL database.
"Annotations" of any more properties can be stored in an RDF model.
</p>

<p>
A special RDF Django Manager is provided, all Django objects
which want to use RDF annotations should be using it.
</p>

<p>
<pre>
  rdf/duetopia/rdf/manager.py
    - defines the Manager class with rdf_get_or_create method

  register/duetopia/register/models/data.py
    - example of usage
    &gt;&gt;&gt; objects = rdf.Manager()
</pre>
</p>

<p>To be continued when somebody wants to know more...</p>
<div id="footer"><p><a href="introduction.html">Introduction / Index</a> | <a href="http://duetopia.googlecode.com/">Code Repository</a></p><p><a href="http://www.terradue.com/duetopia/"><img src="img/terradue_logo.jpg" border="0"/></a></p></div></div></body></html>
